package com.yxb.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yxb.common.annotation.Excel;
import com.yxb.common.core.domain.BaseEntity;

/**
 * 系统消息通知对象 notification
 * 
 * @author ruoyi
 * @date 2025-03-04
 */
@Data
public class Notification extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息id */
    private Long msgId;

    /** 发布者id */
    @Excel(name = "发布者id")
    private Long senderId;

    /** 教员id */
    @Excel(name = "教员id")
    private Long userId;

    /** 内容 */
    @Excel(name = "内容")
    private String content;


    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    @Override
    public String toString() {
        return "Notification{" +
                "msgId=" + msgId +
                ", senderId=" + senderId +
                ", userId=" + userId +
                ", content='" + content + '\'' +
                ", sendTime=" + sendTime +
                '}';
    }



}
